/**
 *  @file SDLFontDeleter.h
 *
 *  @date 26-nov-2009
 *  @author Ives van der Flaas
 */

#ifndef SDLFONTDELETER_H_
#define SDLFONTDELETER_H_

#include <SDL_ttf.h>

namespace si_sdl
{
/**
 * Functor class to delete TTF_Fonts. Necessary for use with shared_ptr.
 */
class SDLFontDeleter
{
public:
	virtual void operator()(TTF_Font* ptr){ TTF_CloseFont(ptr); }
};

}

#endif /* SDLFONTDELETER_H_ */
